package com.ag.zlw.dao;

import java.util.List;

import com.ag.bean.TbExpertArea;
import com.ag.common.IDUtil;

/**
 * 专家领域
 * 
 * @author 钟龙伟
 * 
 */

public class TbExpertAreaDAO extends com.ag.dao.TbExpertAreaDAO {
	// 重写TbExpertAreaDAO中的findAll()和delete()方法

	public List<TbExpertArea> findAll() {
		return super.findByA(IDUtil.PRESERVE); // 查找所有"A"字段为"PRESERVE"的记录
	}

	public void delete(TbExpertArea persistentInstance) {
		persistentInstance.setA(IDUtil.DELETE); // 删除只是把该条记录的"A"字段置为"DELETE"
		super.attachDirty(persistentInstance);
	}
}
